package com.platform.module.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.platform.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import com.platform.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 设备告警记录对象 eq_alarm
 * 
 * @author wangqi
 * @date 2020-08-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eq_alarm")
public class EqAlarm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 设备id */
    @NotBlank(message = "设备id不能为空")
    @Excel(name = "设备id")
    private String eqId;

    /** 设备类型（1阀门2热表3集中器4室温采集器） */
    @Excel(name = "设备类型", readConverterExp = "1=阀门2热表3集中器4室温采集器")
    private String eqType;

    /** 告警级别（1警告2严重） */
    @Excel(name = "告警级别", readConverterExp = "1=警告2严重")
    private String alarmType;

    /** 告警方法 */
    @Excel(name = "告警方法")
    private String alarmMethod;

    /** 告警描述 */
    @Excel(name = "告警描述")
    private String alarmMsg;

    @TableField(exist = false)
    private String createBy;

    @TableField(exist = false)
    private String updateBy;

    @TableField(exist = false)
    private Date updateTime;
}
